package com.hzhc.controller.wxapp;

import com.hzhc.common.BaseController;
import com.hzhc.service.DeclareCarService;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.DeclareCarVo;
import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author 功不唐捐
 * @description 再次提空
 * @date 2024-06-25
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/app")
public class WxApiDeclareController extends BaseController {

    private final DeclareCarService declareCarService;

    /**
     * 散改集 再次提箱 生成一个新的卡口数据
     */
    @PostMapping("/addSgjNewInGateRet")
    public ResultUtil<T> addSgjNewInGateRet(@RequestBody DeclareCarVo vo) {
        vo.setCreateTime(LocalDateTime.now());
        return declareCarService.addSgjNewInGateRet(vo);
    }


}
